package com.wxm.jwt.client.properties;

import com.wxm.jwt.util.FileUtils;
import lombok.AllArgsConstructor;
import lombok.Data;
import java.io.File;

/**
 * <p>
 *      客户端jwt 文件配置读取公钥
 * </p>
 *
 * @author: wxm
 * @Date: 2021/10/6
 */
@Data
@AllArgsConstructor
public class JWTFileAuthClient implements JWTAuthClient {
    private File file;

    @Override
    public byte[] getAuthClientPubKey() {
        return FileUtils.getFileByteArray(file);
    }
}
